<!-- /* Description for file.
 *客户管理添加
 *
 * @copyright     Copyright 2008-2010, PHInfo Services Inc. (http://www.phinfoservices.com)
 * @package       ues
 * @subpackage    ues/app/views/companymanages
 * @since         ues
 * @version       V0.0.1
 * @modifiedby    张朋2011年0714
 * @lastmodified  张朋2011年0714
 -->
<?php
echo $html->css ( 'style' );
echo $html->css ( 'tab' );
echo $javascript->link ( 'jquery' );
echo $html->css('start/jquery-ui-1.8.2.custom');
echo $javascript->link('jquery-ui-1.8.2.custom.min');
?>

<!-- 当前位置
<div id="tabmenubar">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="tabmenubarcontent">您现在的位置：客户管理->详细信息&nbsp;&nbsp;&nbsp;<?php echo $thedetail['Companymanage']['name']?></td>
		<td></td>
		<td></td>
	</tr>
</table>
</div>
--><!-- 当前位置-->
<div id="tabmenubar">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="tabmenubartitle1"><?php echo  __('YourPosition');//您现在的位置：?></td>
		<td class="tabmenubartitle2"><?php echo __('Customer Managements');//一级目录
										   echo '>';echo __('Customer Managements');//二级目录
										   echo '>';?>
									<?php echo $html->tag('span', __('Customer Managements Detail',true).'&nbsp;&nbsp;&nbsp;'.$thedetail['Companymanage']['name']);//当前操作地用span加粗?> 						  
		</td>
	</tr>
</table>
</div>
<!-- 当前位置-->

<input type="hidden" value="<?php echo $thedetail['Companymanage']['id']?>" id="theid"></input>

<!-- //当前位置-->
<table>
	<tr>
		<td width="50"></td>
		<td width="70"><a href="<?php echo ROOT_WEB_PATH; ?>/companymanages/initDetail/<?php echo $thedetail['Companymanage']['id']?>" style="color:red;">基本信息</a></td>
		<td width="70"><a href="<?php echo ROOT_WEB_PATH; ?>/companymanages/linkmanlist/<?php echo $thedetail['Companymanage']['id']?>">联系人</a></td>
		<td width="70"><a href="<?php echo ROOT_WEB_PATH; ?>/companymanages/projectlist/<?php echo $thedetail['Companymanage']['id']?>">项目列表</a></td>
		<td width="70"><a href="<?php echo ROOT_WEB_PATH; ?>/companymanages/initDetailRemark/<?php echo $thedetail['Companymanage']['id']?>">备注信息</a></td>
		<td width="70"><a href="<?php echo ROOT_WEB_PATH; ?>/companymanages/contactallinfo/<?php echo $thedetail['Companymanage']['id']?>">联系日志</a></td>
		<td width="70"><a href="<?php echo ROOT_WEB_PATH; ?>/companymanages/positionallinfo/<?php echo $thedetail['Companymanage']['id']?>">职位列表</a></td>
		<td width="70"><a href="<?php echo ROOT_WEB_PATH; ?>/companymanages/contractmanagementlist/<?php echo $thedetail['Companymanage']['id']?>">合同管理</a></td>
		<td width="70"><a href="<?php echo ROOT_WEB_PATH; ?>/companymanages/feemanageinit/<?php echo $thedetail['Companymanage']['id']?>">费用统计</a></td>
		<td width="70"><a href="<?php echo ROOT_WEB_PATH; ?>/companymanages/staffallinfo/<?php echo $thedetail['Companymanage']['id']?>">企业员工</a></td>
		<td width="70"><a href="<?php echo ROOT_WEB_PATH; ?>/companymanages/resumeReportAllinfo/<?php echo $thedetail['Companymanage']['id']?>">简历报告</a></td>
		<td width="70"><a href="<?php echo ROOT_WEB_PATH; ?>/companymanages/appendixUpload/<?php echo $thedetail['Companymanage']['id']?>">附件列表</a></td>
		<td width="70"><a href="<?php echo ROOT_WEB_PATH; ?>/companymanages/sameCompany/<?php echo $thedetail['Companymanage']['id']?>">同行公司</a></td>
	</tr>
</table>

<div class="tabflex">
	<?php echo $form->create('Companymanage',array('action'=>'add','type'=> 'post'));?>
		<fieldset><legend><?php __('基本信息');?></legend>
		<table width="100%" cellspacing="0" cellpadding="0" border="0" style="text-align: left;font-size:12px;">
			<tr>
			<td>
			<?php
				echo $form->hidden('creater');
				echo $form->hidden('updater ');?> </td>
			</tr>
			<tr>
				<td width="30"></td>
				<td width="120" id = "tda"><?php __('公司名称')?></td>
				<td id = "tdb">
					<?php echo $thedetail['Companymanage']['name']?>				
				</td>
				<td width="120" id = "tda"><?php __('公司简称')?></td>
				<td id = "tdb">
					<?php echo $thedetail['Companymanage']['shortname']?>				
				</td>
			</tr>
			<tr>
				<td width="30"></td>
				<td id = "tda"><?php __('客户编号')?></td>
				<td  id = "tdb">
					<?php echo $thedetail['Companymanage']['companyCode']?>				
				</td>
				<td id = "tda"><?php __('所属行业')?></td>
				<td id = "tdb">
					<?php 
					
					$showIndustry =  $thedetail['Companymanage']['industry'];
					
					$industryArray = explode('_',$showIndustry);
					if(empty($industryArray[1]))
					{
						$showIndustry = $industryArray[0];
					}
					echo $showIndustry;
					?>				
				</td>
			</tr>
			<tr>
				<td width="30"></td>
				<td id = "tda"><?php __('公司网址')?></td>
				<td id = "tdb">
					<?php $url = $thedetail['Companymanage']['url']?>
					<a href="<?php echo $url;?>" target="_blank"><?php echo $url;?></a>			
				</td>
				<td id = "tda"><?php __('企业性质')?></td>
				<td id = "tdb">
					<?php echo $thedetail['Companymanage']['companyProperty']?>				
				</td>
			</tr>
			<tr>
				<td width="30"></td>
				<td id = "tda"><?php __('联系电话')?></td>
				<td id = "tdb">
					<?php echo $thedetail['Companymanage']['tel']?>				
				</td>
				<td id = "tda"><?php __('企业类型')?></td>
				<td id = "tdb">
					<?php echo $thedetail['Companymanage']['companyType']?>				
				</td>
			</tr>
			<tr>
				<td width="30"></td>
				<td id = "tda"><?php __('地区')?></td>
				<td id = "tdb">
					<?php echo $thedetail['Companymanage']['location']?>				
				</td>
				<td id = "tda"><?php __('客户传真')?></td>
				<td id = "tdb">
					<?php echo $thedetail['Companymanage']['fax']?>				
				</td>
			</tr>
			<tr>
				<td width="30"></td>
				<td id = "tda"><?php __('客户地址')?></td>
				<td id = "tdb">
					<?php echo $thedetail['Companymanage']['address']?>				
				</td>
				<td id = "tda"><?php __('邮政编码')?></td>
				<td id = "tdb">
					<?php echo $thedetail['Companymanage']['postCode']?>				
				</td>
			</tr>
			<tr>
				<td width="30"></td>
				<td id = "tda"><?php __('客户状态')?></td>
				<td id = "tdb">
					<?php echo $thedetail['Companymanage']['customerStatues']?>				
				</td>
				<td id = "tda"><?php __('产品')?></td>
				<td id = "tdb">
					<?php echo $thedetail['Companymanage']['product']?>				
				</td>
			</tr>
			<tr>
				<td width="30"></td>
				<td id = "tda"><?php __('公司名称关键字')?></td>
				<td id = "tdb">
					<?php
						$nameKeyWords = $thedetail['Companymanage']['nameKeyWords'];
					 	echo str_replace("/",";",$nameKeyWords);;
					?>				
				</td>
				<td id = "tda"><?php __('保证期')?></td>
				<td id = "tdb">
					<?php echo $thedetail['Companymanage']['warranty']?>				
				</td>
			</tr>
			<tr>
				<td width="30"></td>
				<td id = "tda"><?php __('BD用户名')?></td>
				<td id = "tdb">
					<!--<?php echo $thedetail['Companymanage']['name']?>				
				--></td>
				<td width="100" id = "tda"><?php __('BD时间')?></td>
				<td id = "tdb">
					<!--<?php echo $thedetail['Companymanage']['name']?>				
				--></td>
			</tr>
			<tr>
				<td width="30"></td>
				<td id = "tda"><?php __('企业附件')?></td>
				<td id = "tdb">
				<table>
				<?php foreach($theAppendix as $datas):?>
					<tr><td><?php echo $html->link($datas['Attachment']['fileName'],'/companymanages/appendixDown/'.$datas['Attachment']['id'] ); ?> </td></tr>
				<?php endforeach;?>
				</table>
				</td>
				<td id = "tda"><?php __('其他信息')?></td>
				<td id = "tdb">
					<?php echo $thedetail['Companymanage']['other']?>				
				</td>
			</tr>
		</table>
		</fieldset>
		<?php echo $form->end();?>
		
		
		<!--<?php echo $form->create('Companymanage',array('action'=>'edit','type'=> 'post'));?>
		--><table width="100%" cellspacing="0" cellpadding="0" border="0" style="text-align: left">
			<tr>
			
				<td width="50"></td>

				<td width="100"><a href="<?php echo ROOT_WEB_PATH; ?>/companymanages/edit/<?php echo $thedetail['Companymanage']['id'];?>" class="btn4"><?php //echo $html->image('edit.gif', array('title'=>'修改客户','id'=>'edit','border'=>'0' )); ?> &nbsp;修改客户</a>
				</td>
				<td width="100"><a href="<?php echo ROOT_WEB_PATH; ?>/companymanages/exportview/<?php echo $thedetail['Companymanage']['id'];?>" class="btn4"><?php //echo $html->image('report_excel.png', array('title'=>'导出预览','id'=>'cancel','border'=>'0' )); ?>&nbsp;导出预览</a>
				</td>
				<!--
				<td>
				<?php //echo $html->link('修改客户','/companymanages/edit/'.$thedetail['Companymanage']['id'] );?>
				</td>
				<td>
				<?php //echo $html->link('','/companymanages/exportview/'.$thedetail['Companymanage']['id'] );?>
				</td>
			--></tr>
		</table>
			
	<!--<?php echo $form->end();?>
--></div>
<script type="text/javascript">
$(document).ready(function(){

	var theid = $("#theid").val();

	$("#edit").click(function(){
			$("#CompanymanageEditForm").submit();
		});
	});
</script>
 